
#ifndef __UTF8_H__
#define __UTF8_H__

#include <stdint.h>


struct UTF8 {
        unsigned int    cont_left;
        uint32_t        uc;
};


void utf8_init (struct UTF8 *utf8);
int utf8_decode (struct UTF8 *utf8, unsigned char in, uint32_t *out);

#endif


